package com.yxx.common.core.domain.model;

import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.Email;
import javax.validation.constraints.Size;

/**
 * 用户注册对象
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class RegisterBody extends LoginBody
{

    @Email(message = "邮箱格式不正确")
    @Size(min = 5, max = 50, message = "邮箱长度不能超过50个字符")
    private String email;
}
